﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace TrainigWorkshop.Model
{
    [DataContract]
    public class StudentModel
    {   
        [DataMember]
        private int studentId;
        [DataMember]
        private string studentName;
        [DataMember]
        private string studentGender;
        [DataMember]
        private Grade _grade;

       public StudentModel(Grade grade)
      {
           this._grade = grade;
      }
       public Grade grades
       {
           get { return _grade; }
           set { _grade = value; }
       }
        public string StudentName
        {
           get { return studentName; }
           set { studentName = value; }
        }


        public string StudentGender
        {
           get { return studentGender; }
           set { studentGender = value; }
        }


        public int StudentId
        {
            get { return studentId; }
            set { studentId = value; }
        }
    }
}
